home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Tool Chest / Dev.CD May 97 TC.toast / Sample Code / Networking / OTDumpPortRegistry / Read Me — OTDumpPortRegistry < prev   
Encoding:
Text File  |  1997-01-27  |  1.2 KB  |  33 lines  |  [TEXT/ttxt]

  1. OTDumpPortRegistry
  2.  
  3. 1.0b1
  4.  
  5. This very simple sample dumps a text version of the OT port registry to stdout.  The compiled executable also makes a handy debugging tool.
  6.  
  7. Implementation Notes
  8.  
  9. The code is very simply: it calls OTGetIndexedPort repeatedly and then prints the contents of each OTPortRecord in turn.  The ‘value add’ is:
  10.  
  11. • it shows how to interpret each field of the OTPortRecord
  12. • the final output is useful for debugging things that register ports
  13.  
  14. The code was written with CodeWarrior 9 and tested on multiple machines running a variety of versions of Open Transport.
  15.  
  16. Caveats
  17.  
  18. One of the routines that the sample calls, OTGetUserPortNameFromPortRef, has no Mixed Mode glue.  Thus you have to run the 68K version on a 68K Mac and the PPC version on a PPC Mac, otherwise the sample just quits halfway through.
  19.  
  20. Credits and Version History
  21.  
  22. If you find any problems with this sample, mail <DevSupport@applelink.apple.com> with “Attn: Quinn” as the first line of your mail and I’ll try to fix them up.
  23.  
  24. Version 1.0b1 is the first released version.
  25.  
  26. Share and Enjoy
  27.  
  28. Quinn “The Eskimo!”
  29. Apple Developer Technical Support
  30. Networking, Communications, Hardware
  31.  
  32. 27 Jan 1997
  33.